<template>
	<!-- 门店资质-->
	<view class="cont_s">
		<isEmpty v-if="imag==''" :empty="true" :imgUrl="env.FileUrl+'/food/empty/images/card-default.png'" content="暂无门店服务资质"/>
	  <view class="imass" v-else>
		 <image :src="imag" style="width:100%;" mode="widthFix"></image>
	  </view>
	</view>
</template>

<script setup lang="ts">
	import { ref } from 'vue';
	import { env } from '@/api/env.js';
  import { onShow,onLoad } from '@dcloudio/uni-app';
  import { memberCompany  } from '@/api/vmeitime-http/index.js'
  import { mnavTo, showLoading, hideLoading } from '@/utils/helper';
  import mapi from '@/utils/mapi'
	import isEmpty from '@/components/empty/empty.vue'
  // const imag=ref("https://cdn-static.yekjx.com/food/images/sho_zg02.png")
  const imag=ref("")
  onShow(()=>{
   
  })
  onLoad((options:any)=>{
    console.log('options--------------------',options)
    if(options.nsell_member_id){
       getMemberCompany(options.nsell_member_id)
    }
  })
  const getMemberCompany = async (nsell_member_id:any) => {   //nsell_member_id
    try{
       showLoading()
       let res = await memberCompany({
         nsell_member_id:nsell_member_id
       })
       if(res){
         hideLoading();
         if(res.object.vbus_licence_image){
           imag.value = `${env.imgBaseUrl}${res.object.vbus_licence_image}`
           console.log('图片详情------------------------------------------------------------',res)
         }
       }
     }catch (e) {
      hideLoading();
      mapi.msg('获取数据失败!');
    }
  }
  
</script>

<style lang="scss" scoped>
	.cont_s{
		width:100vw;
		min-height:100vh;
		background-color:#fff;
		padding-top:40rpx;
		overflow-x: hidden;
	}
.imass{
	width:90%;
	margin:auto;
}
</style>